package com.infolab.aims;

import java.util.HashMap;
import java.util.Map;


public class GlobalConstant{
	
	
	public static String SESSION_CURRENT_SYSTEMUSER = "currentSystemUser";
	
	public static String FORM_MODE_UPDATE = "update";
	public static String FORM_MODE_CREATE = "create";
	public static String FORM_MODE_DELETE = "delete";
	
	public static String DATE_FORMAT_JAVA = "yyyy-MM-dd";
	public static String DATE_TIME_FORMAT_JAVA = "yyyy-MM-dd HH:mm";
	public static String DATE_TIME_FORMAT_INTERFACE = "dd/MM/yyyy HH:mm:ss";
	public static String DATE_FORMAT_JSCAL = "yyyy-MM-dd";
	
	
	public static String GLOBAL_DATE_FORMAT_JAVA = "globalDateFormatJava";
	public static String GLOBAL_DATE_TIME_FORMAT_JAVA = "globalDateTimeFormatJava";
	public static String GLOBAL_DATE_FORMAT_JSCAL = "globalDateFormatJsCal";
	public static String GLOBAL_DEPARTMENT = "globalDepartment";
	public static String GLOBAL_SECTION = "globalSection";
	public static String GLOBAL_LOCATION = "globalLocation";
	public static String GLOBAL_VENDOR = "globalVendor";
	public static String GLOBAL_ROLE = "globalRole";
	public static String GLOBAL_ASSET_MODEL = "globalAssetModel";
	public static String GLOBAL_ACCESS_RIGHT = "globalAccessRight";
	public static String GLOBAL_ASSET_TYPE = "globalAssetType";
	public static String GLOBAL_ASSET_CATEGORY = "globalAssetCategory";
	public static String GLOBAL_COMPANY_CODE = "globalCompanyCode";
	public static String GLOBAL_WORK_ORDER_ADHOC = "globalWorkOrderAdHoc";
	public static String GLOBAL_FAULT_CODE = "globalFaultCode";
	public static String GLOBAL_REPAIR_CODE = "globalRepairCode";
	public static String GLOBAL_FAULT_CODE_CATEGORY = "globalFaultCodeCategory";
	public static String GLOBAL_REPAIR_CODE_CATEGORY = "globalRepairCodeCategory";
	public static String GLOBAL_LOCK = "globalLock";
	
	public static String GLOBAL_ASSET_MODEL_STATUS_MAP = "globalAssetModelStatusMap";
	public static String GLOBAL_ACTIVE_MAP = "globalActiveMap";
	public static String GLOBAL_YES_NO_MAP = "globalYesNoMap";
	public static String GLOBAL_USER_TYPE_MAP = "globalUserTypeMap";
	public static String GLOBAL_VENDOR_TYPE_MAP = "globalVendorTypeMap";
	public static String GLOBAL_ACCESS_RIGHT_MAP = "globalAccessRightMap";
	
	public static String GLOBAL_WORKORDER_TYPE_MAP = "globalWorkOrderTypeMap";
	

	public static String GLOBAL_DEPARTMENT_JSON = "globalDepartmentJSON";
	public static String GLOBAL_SECTION_JSON = "globalSectionJSON";
	public static String GLOBAL_ROLE_JSON = "globalRoleJSON";
	
	
	
	public static String STATUS_ACTIVE = "1";
	public static String STATUS_NOT_ACTIVE = "0";
	
	public static String COMPANY_CODE_COMFORT = "CCPL";
	public static String COMPANY_CODE_CITYCAB = "CTPL";
	
	public static String SYSTEM_CODE_TYPE_ASSET_TYPE = "ASSET_TYPE";
	public static String SYSTEM_CODE_TYPE_ASSET_CATEGORY = "ASSET_CATEGORY";
	public static String SYSTEM_CODE_TYPE_COMPANY_CODE = "COMPANY_CODE";
	public static String SYSTEM_CODE_TYPE_WORK_ORDER_ADHOC = "WORKORDER_ADHOC";
	
	public static String SYSTEM_CODE_TYPE_FAULT_CODE = "FAULT_CODE";
	public static String SYSTEM_CODE_TYPE_REPAIR_CODE = "REPAIR_CODE";
	
	public static String SYSTEM_CODE_TYPE_FAULT_CODE_CATEGORY= "FAULT_CODE_CATEGORY";
	public static String SYSTEM_CODE_TYPE_REPAIR_CODE_CATEGORY= "REPAIR_CODE_CATEGORY";
	
	/* location constants */
	public static String SYSTEM_CODE_TYPE_REPAIR_TRANSFER_LOCATION = "REPAIR_TRANSFER_LOCATION";
	public static String SYSTEM_CODE_TYPE_COMPONENT_ISSUE_MAIN_LOCATION = "COMPONENT_ISSUE_MAIN_LOCATION";
	public static String SYSTEM_CODE_TYPE_WORKORDER_FAULT_LOCATION = "WORKORDER_FAULT_LOCATION";
	public static String SYSTEM_CODE_TYPE_WORKORDER_INVEHICLE_LOCATION = "WORKORDER_INVEHICLE_LOCATION";
	public static String SYSTEM_CODE_TYPE_WORKORDER_ACTIVE_LOCATION = "WORKORDER_ACTIVE_LOCATION";
	public static String SYSTEM_CODE_TYPE_VENDOR_REPAIR_LOCATION = "VENDOR_REPAIR_LOCATION";	
	
	public final static String SUCCESS_VALUE="S";
	public final static String FAILURE_VALUE="F";

	public final static String GLOBAL_ACTIVE_DIRECTORY = "activeDirectory";
	

	public static final Map<String,String> REPORTMODULE;
	
	public static final Map<String,String> REPORTMODULE_DESC;
	
	static {
		REPORTMODULE_DESC = new HashMap<String, String>();
		REPORTMODULE_DESC.put("R01","Visitor Access Detail Report");
		REPORTMODULE_DESC.put("R02","Visitor Statistic Report");
		REPORTMODULE_DESC.put("R03","Security Guard Attendent Report");
		REPORTMODULE_DESC.put("R04","Security Guard KPI Report");

		REPORTMODULE = new HashMap<String, String>();
		REPORTMODULE.put("R01","Report Center");
		REPORTMODULE.put("R02","Report Center");
		REPORTMODULE.put("R03","Report Center");
		REPORTMODULE.put("R04","Report Center");

	}
	
	public static final String MIME_XLS = "application/vnd.ms-excel";
	public static final String MIME_PDF = "application/pdf";

}
